import request from '@/utils/request'
// 登录接口
export function login(data) {
  return request({
    url: '/auth/local',
    method: 'post',
    data
  })
}

// 获取当前用户信息额
export function getInfo() {
  return request({
    url: '/users/me',
    method: 'get'
  })
}

// 用户注册接口
export function register(data) {
  return request({
    url: '/auth/local/register',
    method: 'post',
    data
  })
}

// 获取员工的权限
export function mypermissions() {
  return request({
    url: '/mypermissions'
  })
}
